home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / DU Folder / DataSave / Sources / Include / DataSavePrt.h < prev    next >
Encoding:
Text File  |  1995-10-26  |  1.6 KB  |  55 lines  |  [TEXT/MPS ]

  1. //    Copyright © 1995 Apple Computer, Inc. All rights reserved.
  2. //    Release Version:    $ 1.0 d11 $
  3.  
  4. #ifndef DATASAVEPRT_H
  5. #define DATASAVEPRT_H
  6.  
  7. //=======================================================================
  8. #ifndef _DATASAVEDEF_
  9. #include "DataSaveDef.h"
  10. #endif
  11.  
  12. // --- DU Selection FW ---------------------
  13. #ifndef DULISTPART_H
  14. #include "DUListPart.h"        // DU_CListPart
  15. #endif
  16.  
  17. // ----- Foundation Layer -----
  18. #ifndef FWSTDDEF_H
  19. #include <FWStdDef.h>        // ?
  20. #endif
  21.  
  22. //=======================================================================
  23. class FW_CLASS_ATTR FW_CPart;
  24. class FW_CLASS_ATTR FW_CString;
  25. class FW_CLASS_ATTR FW_CPresentation;
  26. class FW_CLASS_ATTR CPizza;
  27.  
  28. //=======================================================================
  29. class FW_CLASS_ATTR CDataSavePart : public DU_CListPart {
  30. public:
  31.                         CDataSavePart(ODPart* odPart);
  32.     virtual             ~CDataSavePart();
  33.     static const ODValueType     kPartKind;
  34.     static const ODValueType     kPartUserName;
  35. // overrides
  36. protected:
  37.     virtual void         Initialize(Environment* ev);
  38.     virtual FW_CFrame*    NewFrame(Environment* ev,
  39.                                  ODFrame* odFrame,
  40.                                  FW_CPresentation* presentation,
  41.                                  FW_Boolean fromStorage);
  42. // new members
  43. public:
  44.     virtual void        MyAddPizza(Environment* ev, CPizza* pizza);
  45.     virtual void        MyRemovePizza(Environment* ev, CPizza* pizza);
  46.     virtual void        MyInvalidatePresentation(Environment* ev, FW_CRect& invalidRect);
  47. protected:
  48.     virtual void         MyInitMenus(Environment* ev);
  49. private:
  50.     FW_CPresentation*    fPresentation;
  51. };
  52.  
  53. //=======================================================================
  54. #endif
  55.